home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
crwdemo
/
rpttitle.frm
< prev
next >
Wrap
Text File
|
1995-12-05
|
3KB
|
123 lines
VERSION 2.00
Begin Form RptTitle
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "Report Title"
ClientHeight = 2565
ClientLeft = 2415
ClientTop = 3450
ClientWidth = 5055
Height = 3255
Left = 2355
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2565
ScaleWidth = 5055
Top = 2820
Width = 5175
Begin SSPanel Panel3D2
Alignment = 1 'Left Justify - MIDDLE
BevelInner = 1 'Inset
BevelWidth = 2
BorderWidth = 1
Caption = "Panel3D2"
Height = 1185
Left = 180
TabIndex = 5
Top = 360
Width = 3165
Begin TextBox Text1
Height = 1005
Left = 90
MultiLine = -1 'True
TabIndex = 6
Top = 90
Width = 2985
End
End
Begin SSPanel Panel3D1
Alignment = 1 'Left Justify - MIDDLE
BorderWidth = 1
Height = 510
Left = 0
TabIndex = 4
Top = 2070
Width = 5235
End
Begin CommandButton Command3
Caption = "&OK"
Height = 375
Left = 3510
TabIndex = 2
Top = 1080
Width = 1185
End
Begin CommandButton Command2
Caption = "Get Title"
Height = 375
Left = 3510
TabIndex = 1
Top = 90
Width = 1215
End
Begin CommandButton Command1
Caption = "Set Title"
Height = 375
Left = 3510
TabIndex = 0
Top = 585
Width = 1215
End
Begin Label Label1
BackColor = &H00C0C0C0&
Caption = "Report Title:"
Height = 210
Left = 240
TabIndex = 3
Top = 120
Width = 1095
End
Begin Menu MenuFile
Caption = "&File"
End
End
Sub Command1_Click ()
If PESetReportTitle(JobNum, Text1.Text) = False Then
RCode = GetErrorString(JobNum)
MsgBox "PESetReportTitle Error #: " + Str(ErrorCode) + " - " + RCode
Else
MsgBox ("Report Title Set")
End If
End Sub
Sub Command2_Click ()
Dim Title As String
Dim TextHandle As Integer, TextLength As Integer
If PEGetReportTitle(JobNum, TextHandle, TextLength) = False Then
MsgBox ("Cannot retrieve title")
End If
'Allocate memory for string
Title = String(TextLength, " ")
If PEGetHandleString(TextHandle, Title, TextLength) = False Then
MsgBox ("Cannot Retrieve the title")
Else
Text1.Text = Title
End If
End Sub
Sub Command3_Click ()
Unload Me
End Sub
Sub MenuFile_Click ()
Unload Me
End Sub